<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.lmpop.createIndex.search.*" %>
<%
	request.setCharacterEncoding("UTF-8");
	
	AdvinfoIndexFiles  advinfoIndex =new AdvinfoIndexFiles();
	
	Map map =  new Hashtable();

	String s_post_id = "";
	if(request.getParameter("pos_id")!=null && !request.getParameter("pos_id").equals("")){
		s_post_id = request.getParameter("pos_id");
		map.put("pos_id",s_post_id);
	}

	String width = "";
	if(request.getParameter("width")!=null && !request.getParameter("width").equals("")){
		width = request.getParameter("width");
	}
	String height = "";
	if(request.getParameter("height")!=null && !request.getParameter("height").equals("")){
		height = request.getParameter("height");
	}

	String adv_url="";

	String file_path="";

	int listsie=0;
	List list = advinfoIndex.getAdvinfoInfo(map);
	//out.println(list);
	String pos_ids="",adv_urls="",widths="",heights="",file_paths="";
	for(int i=0;i<list.size();i++){
		map = (Hashtable)list.get(i);
		if(map.get("pos_id")!=null) pos_ids = map.get("pos_id").toString();
		if(map.get("adv_url")!=null) adv_urls = map.get("adv_url").toString();
		if(map.get("width")!=null) widths = map.get("width").toString();
		if(map.get("height")!=null) heights = map.get("height").toString();
		if(map.get("file_path")!=null) file_paths = map.get("file_path").toString();
	}
	if(file_paths.equals("")) file_paths = "/templets/html/wuliu/img/nopic.gif";
	
	
%>

<a href="<%=adv_urls%>"><img src="<%=file_paths%>" width=<%=width%> height="<%=height%>"/></a>